package IO;

import java.io.File;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2023-07-26
 * Time: 16:06
 */
public class IODemo4 {
    public static void main(String[] args) {
        File file = new File("make_dir");
        String[] result1 = file.list();
        System.out.println(result1);//直接打印数组，打印出来的是哈希值
        System.out.println(Arrays.toString(result1));//数组不能直接打印，需要用到toString方法
        File[] result2 = file.listFiles();
        System.out.println(Arrays.toString(result2));//数组不能直接打印，需要用到toString方法
    }
}
